package exilim.exf1.cspacker.gui;

import java.awt.LayoutManager;

import javax.swing.BorderFactory;
import javax.swing.JPanel;

/**
 * 
 * @author Janos
 * @version 15.08.2010 | 15:40:36
 * 
 */
public class JGroup extends JPanel {

	private static final long serialVersionUID = 3866478971884787646L;
	private final String groupName;

	public JGroup(final String groupName) {
		super();
		this.groupName = groupName;
		this.setBorder(BorderFactory.createTitledBorder(this.groupName));
	}

	public JGroup(final String groupName, final boolean isDoubleBuffered) {
		super(isDoubleBuffered);
		this.groupName = groupName;
		this.setBorder(BorderFactory.createTitledBorder(this.groupName));
	}

	public JGroup(final String groupName, final LayoutManager layout, final boolean isDoubleBuffered) {
		super(layout, isDoubleBuffered);
		this.groupName = groupName;
		this.setBorder(BorderFactory.createTitledBorder(this.groupName));
	}

	public JGroup(final String groupName, final LayoutManager layout) {
		super(layout);
		this.groupName = groupName;
		this.setBorder(BorderFactory.createTitledBorder(this.groupName));
	}

}
